package com.hbxy.favorite.controller;

import com.hbxy.favorite.domain.Comment;
import com.hbxy.favorite.resault.ResponseBo;
import com.hbxy.favorite.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class CommentController {

    @Autowired
    private CommentService commentService;
    /**
     * 获取收藏夹
     * @return
     */
    @RequestMapping("/addComment")
    @ResponseBody
    public ResponseBo addComment(@RequestBody Comment comment){

        ResponseBo responseBo = commentService.addComment(comment);
        return  responseBo;
    }

}
